home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac: Not for Sale
/
Another.not.for.sale (Australia).iso
/
fade into you
/
getting there
/
WWW
/
MacHTTP Extras
/
Script Tools
/
Examples
/
Shutdown Example
< prev
Encoding:
Amiga (detected)
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-07-08
|
277 b
|
7 lines
|
[
TEXT/R*ch
]
set result to display dialog "Are you sure you want to shutdown?" ¬
buttons {"Shutdown", "Restart", "Cancel"} ¬
default button "Cancel"
if button returned of result = "Shutdown" then ¬
shutdown without rest
if button returned of result = "Restart" then ¬
shutdown with rest